<template>
  <div class="demo-block">
    <h4>基础用法</h4>
    <div class="demo-row">
      <my-switch v-model="switchValue"></my-switch>
      <my-switch v-model="switchValue" disabled></my-switch>
    </div>
  </div>
</template>

<script>
import _switch from "../../../../src/components/switch";
export default {
  components: { "my-switch": _switch },
  data() {
    return {
      switchValue: false,
    };
  },
};
</script>

<style scoped>
.my-switch {
    margin-right: 10px;
}
</style>